package synchronization;

public class ProducerConsumerTest {

	public static void main(String[] args) {
		SharedQueue<Resource> queue = new SharedQueue<Resource>(10);
		
		Producer p1 = new Producer(queue);
		p1.start();
		Producer p2 = new Producer(queue);
		p2.start();
		Producer p3 = new Producer(queue);
		p3.start();
		
		Consumer c1 = new Consumer(queue);
		c1.start();
		Consumer c2 = new Consumer(queue);
		c2.start();
		Consumer c3 = new Consumer(queue);
		c3.start();
	}

}
